package com.rong.deepseek.controller;

import com.rong.deepseek.service.AiService;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 周厚荣
 * @date 2025/3/31 20:39
 */
@RestController
@RequestMapping("/ai")
public class AiController {
    @Resource
    private AiService aiService;

    @GetMapping("/sendText/{text}")
    public String sendText(@PathVariable String text) {
        String result = aiService.sendText(text);
        return result;
    }
}
